from comm.action import *

dr=Drive.open_browser("http://class.atstudy.com/home/login")
dr.find_element(By.ID,"acc").send_keys('test')
dr.find_element(By.ID,"password").send_keys('123456')
dr.find_element(By.XPATH,'//input[@class="login_btn"]').click()
dr.find_element(By.LINK_TEXT,'我的训练').click()
# dr.find_element(By.LINK_TEXT,'arrow_drop_down').click()

# dr.find_element(By.XPATH,'//i[@class="v-icon material-icons theme--light primary--text"]').click()
dr.find_element(By.CLASS_NAME,'v-select__selections').click()
dr.find_element(By.LINK_TEXT,'软件测试的理想模式是什么？( 简单 )').click()
dr.find_element(By.XPATH,'//div[text()="开始练习"]').click()

# for i in range(7):
b=dr.find_element(By.ID,By.XPATH,'//*[@id="i_3"]')
c=b.text
print(b)

